<template>
  <div>
    <table class="table table-bordered table-stripped">
      <!-- 表格标题区域 -->
      <thead>
        <tr>
          <slot name="t_header"></slot>
        </tr>
      </thead>
      <!-- 表格主体区域 -->
      <tbody>
        <tr v-for="(item,index) in arr" :key="item.id">
          <slot name="t_body" :listDate="item" :indd="index"></slot>
        </tr>
      </tbody>
    </table>
  </div>
</template>
<script>
export default {
  props: ["arr"],
  name: "MyTable",
  data() {
    return {};
  },
  methods: {},
  created() {},
  mounted() {}
};
</script>

<style scoped lang="less">
.my-goods-list {
  .badge {
    margin-right: 5px;
  }
}
</style>